import axios from "axios";

export default function (){
    return async function login(username, password){
        return await axios.post("http://localhost:8088/api/login", {
            account: username,
            password: password
        })
    }
}